<!DOCTYPE HTML>
<html>
<head>
<title>接口聚合报告</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<link rel="stylesheet" href="${contextPath}/css/default.css" type="text/css" />
</head>
<body>
<p class="heading">&nbsp;&nbsp;${pressureTest.name}_${pressureTest.createDt}_测试报告</p>
	<table style="margin-left:0px;width: 99%" border="0" cellpadding="0" cellspacing="0" class="dataTable">
		<thead>
		<tr>
			<th width="70" align="center"><strong>序号</strong></th>
			<th align="center"><strong>接口名称</strong></th>
			<th align="center"><strong>请求路径</strong></th>
			<th align="center" style="padding: 0px 10px;"><strong>请求方法</strong></th>
			<th align="center" style="padding: 0px 10px;"><strong>样本总数</strong></th>
			<th align="center" style="padding: 0px 10px;"><strong>总花费时间（毫秒）</strong></th>
			<th align="center" style="padding: 0px 10px;"><strong>最少花费时间（毫秒）</strong></th>
			<th align="center" style="padding: 0px 10px;"><strong>最大花费时间（毫秒）</strong></th>
			<th align="center" style="padding: 0px 10px;"><strong>平均花费时间（毫秒）</strong></th>
			<th align="center" style="padding: 0px 10px;"><strong>发送流量</strong></th>
			<th align="center" style="padding: 0px 10px;"><strong>接收流量</strong></th>
			<th align="center" style="padding: 0px 10px;"><strong>响应成功数</strong></th>
			<th align="center" style="padding: 0px 10px;"><strong>响应成功率</strong></th>
			<th align="center" style="padding: 0px 10px;"><strong>业务成功数</strong></th>
			<th align="center" style="padding: 0px 10px;"><strong>业务成功率</strong></th>
			<th align="center" style="padding: 0px 10px;"><strong>操作</strong></th>
		</tr>
		</thead>
		<tbody>
		<#list pressureTest.aggregateReports as report>
			<tr>
				<td height="23" style="text-align:center">${report_index+1} </td>
				<td style="text-align:left">${report.apiName}</td>
				<td style="text-align:left;padding: 0px 10px;">${report.path}</td>
				<td style="text-align:center">${report.method}</td>
				<td style="text-align:center">${report.total}</td>
				<td style="text-align:center">${report.totalCost}</td>
				<td style="text-align:center">${report.minCost}</td>
				<td style="text-align:center">${report.maxCost}</td>
				<td style="text-align:center">${report.avgCost}</td>
				<td style="text-align:center">${report.sendSizeString}</td>
				<td style="text-align:center">${report.receiveSizeString}</td>
				<td style="text-align:center">${report.responseSuccessNum}</td>
				<td style="text-align:center">
					${(report.responseSuccessNum/report.total*100)?string('0.0')}%
				</td>
				<td style="text-align:center">${report.businessSuccessNum}</td>
				<td style="text-align:center">
					${(report.businessSuccessNum/report.total*100)?string('0.0')}%
				</td>
				<td style="text-align:center"><a target="_blank" href="${contextPath}/test/call-result?reportId=${report.id}">查看</a></td>
			</tr>
		</#list>
		</tbody>
	</table>
<br><br>
</body>

</html>
